package week6;

public class Test2 {
    public static void main(String[] args) {
        Student student1 = new Student("张三", 20);
        Student student2 = new Student("李四", 21, "北京大学");
        Student student3 = new Student("王五", 22, "清华大学", "计算机科学");
        System.out.println("学生1信息：");
        System.out.println("姓名：" + student1.name + "，年龄：" + student1.age +
                "，学校：" + student1.school + "，专业：" + student1.major);
        System.out.println("\n学生2信息：");
        System.out.println("姓名：" + student2.name + "，年龄：" + student2.age +
                "，学校：" + student2.school + "，专业：" + student2.major);
        System.out.println("\n学生3信息：");
        System.out.println("姓名：" + student3.name + "，年龄：" + student3.age +
                "，学校：" + student3.school + "，专业：" + student3.major);
    }
}
